package com.yf.exam.modules.trainingarchives.studentassess.service.impl;

import com.yf.exam.modules.trainingarchives.studentassess.dto.StudentAssessDTO;
import com.yf.exam.modules.trainingarchives.studentassess.entity.StudentAssess;
import com.yf.exam.modules.trainingarchives.studentassess.mapper.StudentAssessMapper;
import com.yf.exam.modules.trainingarchives.studentassess.service.IStudentAssessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学员考试情况表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-12-29
 */
@Service
public class StudentAssessServiceImpl extends ServiceImpl<StudentAssessMapper, StudentAssess> implements IStudentAssessService {

    @Override
    public void add(StudentAssessDTO reqDTO) {
        StudentAssess entity = new StudentAssess();
        BeanUtils.copyProperties(reqDTO,entity);
        this.saveOrUpdate(entity);
    }


}
